/***************
 * Organization Inquiries Panel
 */
AIR2.Organization.Inquiries = function() {
    return new AIR2.UI.Panel({
        colspan: 1,
        title: 'Queries',
        showTotal: true,
        showAllLink: AIR2.Organization.INQSRCH,
        iconCls: 'air2-icon-inquiry',
        storeData: AIR2.Organization.INQDATA,
        url: AIR2.Organization.ORGURL + '/inquiries',
        itemSelector: '.air2-org-inq',
        tpl: new Ext.XTemplate(
            '<table><tpl for=".">' +
              '<tr class="air2-org-inq">' +
                '<td>{[AIR2.Format.inquiryTitle(values, true)]}</td>' +
                '<td>{[AIR2.Format.userName(values.CreUser, true)]}</td>' +
                '<td class="date">{[AIR2.Format.date(values.inq_publish_dtim)]}</td>' +
              '</tr>' +
            '</tpl></table>',
            {compiled: true, disableFormats: true}
        )
    });
}
